﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class Sys_PermistionCollection : List<Sys_Permistion>
    {
         public int IndexOf(Sys_Permistion item)
        {
            return base.IndexOf(item);
        }
        public void Insert(int index, Sys_Permistion item)
        {
            base.Insert(index, item);
        }
        public new void RemoveAt(int index)
        {
            base.RemoveAt(index);
        }
        public Sys_Permistion this[int index]
        {
            get
            {
                return base[index];
            }
            set
            {
                base[index] = value;
            }
        }
        public void Add(Sys_Permistion item)
        {
            base.Add(item);
        }
        public new void Clear()
        {
            base.Clear();
        }
        public new bool Contains(Sys_Permistion item)
        {
            return base.Contains(item);
        }
        public new void CopyTo(Sys_Permistion[] array, int arrayIndex)
        {
            base.CopyTo(array, arrayIndex);
        }
        public new int Count
        {
            get
            {
                return base.Count;
            }
        }
        public bool IsReadOnly
        {
            get
            {
                return IsReadOnly;
            }
        }
        public new void Remove(Sys_Permistion item)
        {
            base.Remove(item);
        }
        public new IEnumerator<Sys_Permistion> GetEnumerator()
        {
            return base.GetEnumerator();
        } 
    }
    public class Sys_Permistion
    {
        private int _IdUser;

        public int IdUser
        {
            get { return _IdUser; }
            set { _IdUser = value; }
        }
        private int _IdPage;

        public int IdPage
        {
            get { return _IdPage; }
            set { _IdPage = value; }
        }
        private Boolean _Permit;

        public Boolean Permit
        {
            get { return _Permit; }
            set { _Permit = value; }
        }
        private Boolean _IsAdd;

        public Boolean IsAdd
        {
            get { return _IsAdd; }
            set { _IsAdd = value; }
        }
        private Boolean _IsEdit;

        public Boolean IsEdit
        {
            get { return _IsEdit; }
            set { _IsEdit = value; }
        }
        private Boolean _IsDelete;

        public Boolean IsDelete
        {
            get { return _IsDelete; }
            set { _IsDelete = value; }
        }
        private Boolean _IsView;

        public Boolean IsView
        {
            get { return _IsView; }
            set { _IsView = value; }
        }
        private Boolean _IsPrint;

        public Boolean IsPrint
        {
            get { return _IsPrint; }
            set { _IsPrint = value; }
        }
        private Boolean _IsAccept;

        public Boolean IsAccept
        {
            get { return _IsAccept; }
            set { _IsAccept = value; }
        }
        private Boolean _IsSend;

        public Boolean IsSend
        {
            get { return _IsSend; }
            set { _IsSend = value; }
        }
        private DateTime _CreateDate=DateTime.Now;

        public DateTime CreateDate
        {
            get { return _CreateDate; }
            set { _CreateDate = value; }
        }
        private int _CreateBy;

        public int CreateBy
        {
            get { return _CreateBy; }
            set { _CreateBy = value; }
        }
        private int _UpdateBy;

        public int UpdateBy
        {
            get { return _UpdateBy; }
            set { _UpdateBy = value; }
        }
        private DateTime _UpdateDate=DateTime.Now;

        public DateTime UpdateDate
        {
            get { return _UpdateDate; }
            set { _UpdateDate = value; }
        }
        private Boolean _Status;

        public Boolean Status
        {
            get { return _Status; }
            set { _Status = value; }
        }
    }
}
